package com.qilu.pe.ui.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.qilu.pe.R;
import com.qilu.pe.dao.bean.ItemSetDetail;
import com.ruitu.arad.base.BaseFragment;

// 项目详情1项目介绍界面
public class ItemSetDetail1Fragment extends BaseFragment {
    private TextView tv_medical_meaning;

    private ItemSetDetail detail;

    public ItemSetDetail1Fragment() {

    }

    public static ItemSetDetail1Fragment newInstance(String param1, ItemSetDetail detail) {
        ItemSetDetail1Fragment fragment = new ItemSetDetail1Fragment();
        Bundle args = new Bundle();
        args.putSerializable("detail", detail);
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        detail = (ItemSetDetail) getArguments().getSerializable("detail");
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_item_set_detail1, container, false);
        tv_medical_meaning = v.findViewById(R.id.tv_medical_meaning);

        tv_medical_meaning.setText(detail.getSignificance());

        return v;
    }
}